package org.example.C7_17;

import org.example.C7_17.Role;

public class Magicer extends Role {

    String name;
    private int lever;// 魔法等级

    public Magicer() {
    }

    public Magicer(String name,int lever) {
        this.name=name;
        this.lever=lever;
    }

    @Override
    public String toString() {
        return "Magicer{" +
                "name='" + name + '\'' +
                ", lever=" + lever +
                '}';
    }

    public int attack() {
        return lever * 5;
    }

    public Magicer(int lever) {
        this.lever = lever;
    }

    public int getLever() {
        return lever;
    }

    public void setLever(int lever) {
        this.lever = lever;
    }
}
